applications of integrals